#ifndef SIGNAL_4G_H
#define SIGNAL_4G_H

#include <QWidget>
class QTimer;
class Signal_4G : public QWidget
{
    Q_OBJECT
public:
    explicit Signal_4G(QWidget *parent = nullptr);

signals:

public:
    double getMinValue()            const;
    double getMaxValue()            const;
    void reStart(bool IsOpen);
public slots:
    //设置最大最小值
    void setMinValue(double minValue);
    void setMaxValue(double maxValue);
    void setCurrentValue(double currentValue);
    void slots_TimeOut();
protected:
    void paintEvent(QPaintEvent *);

protected:
    int m_Count;
    double m_MinValue;
    double m_MaxValue;
    double m_CurrentValue;

    bool IsReStart;
    QTimer *m_Timer;
};

#endif // SIGNAL_4G_H
